<!--
 * @Author: kiwi
 * @Date: 2025-05-12 15:34:34
 * @LastEditTime: 2025-06-05 11:26:24
 * @LastEditors: kiwi
 * @FilePath: \kouhan-h5\src\views\page\index\components\contact.vue
 * @Description: 
-->
<template>
  <div class="contact_page">
    <img src="~@/assets/images/page/contact_text.png" alt="" class="form_img">
    <el-form ref="form" :model="form" :rules="rules" label-position="top" class="form_contact">
      <el-row>
        <el-col :span="24">
          <el-form-item prop="value">
            <template slot="label">
              <div class="label_title">
                Full name*
                <span class="label_tip">Fields marked with an asterisk (*) are required.</span>
              </div>
            </template>
            <el-input v-model="form.value" placeholder="Enter Full name"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item prop="value">
            <template slot="label">
              <div class="label_title">Email*</div>
            </template>
            <el-input v-model="form.value1" placeholder="Enter Email"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item prop="value">
            <template slot="label">
              <div class="label_title">Subject*</div>
            </template>
            <el-input v-model="form.value2" placeholder="Enter Subject"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item prop="value">
            <template slot="label">
              <div class="label_title">Message*</div>
            </template>
            <el-input v-model="form.value3" type="textarea" :rows="5" placeholder="Enter Message"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <div class="submit">
        <img src="~@/assets/images/page/send.png" alt="" class="send_img" @click="submitForm">
        <img src="~@/assets/images/page/send_text.png" alt="" class="sen_other_img">
      </div>
    </el-form>
  </div>
</template>
<script>
export default {
  data(){
    return{
      rules:{
        value: [
          { required: true, message: "Enter Full name", trigger: "blur" }
        ],
        value1: [
          { required: true, message: "Enter Email", trigger: "blur" }
        ],
        value2: [
          { required: true, message: "Enter Subject", trigger: "blur" }
        ],
        value3: [
          { required: true, message: "Enter Message", trigger: "blur" }
        ],
      },
      form:{

      }
    }
  },
  created(){

  },
  methods:{
    submitForm(){
      this.$refs["form"].validate(valid => {
        if (valid) {

        }
      })
    }
  }
}
</script>
<style lang="scss" scoped>
.contact_page{
  width: 100%;
  background: url('~@/assets/images/page/contact_bg.png') no-repeat;
  background-size: 100% 101%;
  padding: 45px 48px;
  box-sizing: border-box;
  .form_contact{
    
  
    .label_title{
      color: #ffffff;
      font-weight: bold;
      font-size: 11px;
      line-height: 15px;
      display: flex;
      justify-content: space-between;
      width: 100%;
      margin-top: -10px;
      .label_tip{
        display: inline-block;
        font-size: 7px;
        color: #C1C1C1;
        font-weight: 400;
      }
    }
    ::v-deep .el-input__inner{
      height: 26px!important;
      background: rgba($color: #ffffff, $alpha: 0.2);
      border-radius: 6px;
      border-color: #999897;
      padding: 0 10px;
      box-sizing: border-box;
      color: #C1C1C1;
      font-size: 12px;
      &:focus{
        border-color:#FFE46F
      }
    }
    ::v-deep .el-textarea__inner{
      background: rgba($color: #ffffff, $alpha: 0.2);
      border-radius: 6px;
      border-color: #999897;
      padding: 5px 10px;
      box-sizing: border-box;
      color: #C1C1C1;
      font-size: 12px;
      &:focus{
        border-color:#FFE46F
      }
      margin-top: 5px!important;
    }
    .submit{
      display: flex;
      align-items: center;
      margin-top: 15px;
      .send_img{
        width: 141px;
        height: 32px;
        margin-right: 30px;
        cursor: pointer;
      }
      .sen_other_img{
        width: 172px;
        height: 21px;
      }
    }
  }
  ::v-deep .el-form-item{
    margin-bottom: 10px!important;
  }
  ::v-deep .el-form-item__content{
    margin-top: -10px!important;
  }
  .form_img{
    width: 333px;
    height: 63px;
    margin: 0 auto 15px;
  }
  ::v-deep .el-form-item__label{
    width: 100%!important;
    padding-bottom: 4px!important;
    padding-left: 11px!important;
    box-sizing: border-box!important;
  }
  ::v-deep .el-form-item__label:before{
    display: none!important;
  }
}
</style>